/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

$(document).on('click', '[data-widgster=collapse]', function(e) {
    var $this = $(e.target), $content, $plus;
    $this.is('a') || ($this = $this.closest('a'));
    $plus = $this.parent().find('[data-widgster=expand]');
    $content = $this.parent().parent().parent();
    $content.find('.form-horizontal').slideUp(200);
    $this.css("display","none");
    $plus.css("display","inline");
});

$(document).on('click', '[data-widgster=expand]', function(e) {
    var $this = $(e.target), $content, $plus;
    $this.is('a') || ($this = $this.closest('a'));
    $plus = $this.parent().find('[data-widgster=collapse]');
    $content = $this.parent().parent().parent();
    $content.find('.form-horizontal').slideDown(200);
    $this.css("display","none");
    $plus.css("display","inline");
});
